<ui:composition
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>
	<rich:modalPanel id="editEventModPanel" autosized="true" width="450">
		<f:facet name="header">
			<h:outputText value="#{commonBundle.editDir}"/>
		</f:facet>
		<f:facet name="controls">
			<h:panelGroup>
				<h:graphicImage value="/img/close.png" id="hidelinkTr"
								styleClass="hidelink"/>
				<rich:componentControl for="editEventModPanel" attachTo="hidelinkTr"
									   operation="hide" event="onclick"/>
			</h:panelGroup>
		</f:facet>
		<h:form>
			<h:panelGrid columns="1">
				<a4j:outputPanel ajaxRendered="true">
					<ui:decorate template="/facelets/template/student/eventReasonTemplate.xhtml">
						<ui:param name="idPrefix" value="editDir"/>
						<ui:param name="event" value="#{studentEventBean.currentItem}"/>
					</ui:decorate>
				</a4j:outputPanel>
				<a4j:commandButton id="butSaveDir" value="#{commonBundle.save}"
								   action="#{studentEventBean.saveDirEvent}"
								   reRender="eventTransferTable,eventVacationTable"/>
				<rich:componentControl for="editEventModPanel" attachTo="butSaveDir"
									   operation="hide" event="onclick"/>
			</h:panelGrid>
		</h:form>
	</rich:modalPanel>
</ui:composition>